package business;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import struts.action.Action;
import struts.form.ActionForm;

/**
 * 创建者 zhuhong  E-mail: zhuhong719@126.com
 * 创建时间：Jul 16, 2014 9:10:21 PM
 * 版本：
 * 类说明：
 * 修改者：
 * 修改时间：Jul 16, 2014 9:10:21 PM
 * 修改说明：
 */
public class LoginAction implements Action{

	@Override
	public String execute(ActionForm form,Map<String, String> actionForward, HttpServletRequest request,
			HttpServletResponse response) {
		String url="error";
		LoginForm myform=(LoginForm)form;
		if(myform.getAccount().equals("admin") && myform.getPassword().equals("welcome")){
			url="success";
		}
		return actionForward.get(url);
	}
}
